package com.example.banksys;


import javafx.beans.property.*;

import java.sql.Timestamp;

public class tradeTrace {
    protected SimpleLongProperty account_ID;
    protected SimpleLongProperty trade_ID;
    protected SimpleStringProperty type;
    protected SimpleLongProperty teller_ID;
    protected SimpleStringProperty voucher_type;//账户类型（存单，存折，信用卡等等）
    protected SimpleDoubleProperty money;
    protected Timestamp trade_date;

    public tradeTrace(){
        this.trade_ID=new SimpleLongProperty();
        this.account_ID=new SimpleLongProperty();
        this.type=new SimpleStringProperty();
        this.teller_ID=new SimpleLongProperty();
        this.voucher_type=new SimpleStringProperty();
        this.money=new SimpleDoubleProperty();
    }


    public SimpleStringProperty getType() {
        return type;
    }

    public SimpleStringProperty getVoucher_type() {
        return voucher_type;
    }

    public long getAccount_ID() {
        return account_ID.get();
    }

    public SimpleLongProperty getTrade_ID() {
        return trade_ID;
    }

    public SimpleLongProperty getTeller_ID() {
        return teller_ID;
    }

    public Timestamp getTrade_date() {
        return trade_date;
    }

    public SimpleDoubleProperty getMoney() {
        return money;
    }

    public void setType(String type) {
        this.type.set(type);
    }

    public void setAccount_ID(long account_ID) {
        this.account_ID.set(account_ID);
    }

    public void setMoney(double money) {
        this.money.set(money);
    }

    public void setTeller_ID(Long teller_ID) {
        this.teller_ID.set(teller_ID);
    }

    public void setTrade_date(Timestamp trade_date) {
        this.trade_date = trade_date;
    }

    public void setTrade_ID(long trade_ID) {
        this.trade_ID.set(trade_ID);
    }

    public void setVoucher_type(String voucher_type) {
        this.voucher_type.set(voucher_type);
    }
}
